import {
	defineConfig
} from 'vite'
import uni from '@dcloudio/vite-plugin-uni';
import UnoCSS from 'unocss/vite';
import AutoImport from "unplugin-auto-import/vite";
export default defineConfig({
	css: {
		preprocessorOptions: {
			scss: {
				silenceDeprecations: ['legacy-js-api'],
				api: 'modern-compiler'
			}
		}
	},
	plugins: [
		uni(),
		UnoCSS(),
		AutoImport({
			imports: [
				// 预设
				'vue',
				'uni-app'
			]
		})
	],
})